package qsc.designpattern.proxy;

import java.lang.reflect.Proxy;

/**
 * @auther QiuShangcheng
 * @create 2021/4/5
 */
public class JDKProxyFactory {
    public static Object getProxy(Object target){
      return Proxy.newProxyInstance(target.getClass().getClassLoader(),
              target.getClass().getInterfaces(),
              new DebugInvocationHandler(target)
      );
  }
}
